/**
 *
 */
package com.naiterui.ehp.bs.esign.entity.mysql;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.Data;

/**
 * 预签署文件明细表
 * @author Ldl
 * @since 1.0.0
 */
@Data
@Entity
@Table(name = "recomm_prescription")
public class EsignRecommPrescription {

    /**
     * 文件类型-未签名
     */
    public static final Integer TYPE_UNSIGN = 1;
    /**
     * 文件类型-医师签名
     */
    public static final Integer TYPE_DOCTOR_SIGN = 2;
    /**
     * 文件类型-药师签名
     */
    public static final Integer TYPE_PHARMACIST_SIGN = 3;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    private Long id;
    @Column(name = "recommend_id")
    private Long recommendId;
    @Column(name = "prescription_photo_name")
    private String prescriptionPhotoName;
    @Column(name = "prescription_photo_url")
    private String prescriptionPhotoUrl;
    @Column(name = "type")
    private Integer type;
    @Column(name = "created_at")
    private Date createdAt;
    @Version
    private Integer version;

}
